/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.dao.shopping;

import com.idenger.common.persistence.CrudDao;
import com.idenger.common.persistence.annotation.MyBatisDao;
import com.idenger.modules.edu.entity.shopping.EduShoppingCart;
import com.idenger.modules.edu.entity.shopping.ShoppingCart;

import java.util.List;

/**
 * 购物车DAO接口
 * @author chenlin
 * @version 2017-12-14
 */
@MyBatisDao
public interface EduShoppingCartDao extends CrudDao<EduShoppingCart> {
    List<EduShoppingCart> forbidSameDataToCart(EduShoppingCart eduShoppingCart);
    List<EduShoppingCart>    findListByUserIdAndProjectId(EduShoppingCart eduShoppingCart);
    List<EduShoppingCart> 	findShoppCartProject(EduShoppingCart eduShoppingCart);
    List<ShoppingCart> findShoppingCart(String  userId);
    
    void deleteShopping(String userId,String courseId);
    
}